import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./assets/CSS/global.css";
import ElementUi from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import axios from "axios";

axios.interceptors.request.use((config) => {
	config.headers.Authorization = window.sessionStorage.getItem("token");
	console.log(config);
	return config;
});

Vue.use(ElementUi);
Vue.config.productionTip = false;
Vue.prototype.$axios = axios; //全局注册，使用方法为:this.$axios

new Vue({
	router,
	render: (h) => h(App),
}).$mount("#app");
